package com.briup.pts.service;

import com.briup.pts.domain.bean.Animal;
import com.briup.pts.domain.vo.AnimalVO;
import com.github.pagehelper.PageInfo;
import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;

import java.util.List;

public interface AnimalService {
    AnimalVO findByAnimalId(String animalId);

    PageInfo<AnimalVO> pageQueryByConditional(@Min(value = 1, message = "当前页码不能小于1") Integer pageNum, @Min(value = 1, message = "页面不能小于1") Integer pageSize, String aHealthy, String aGender);

    void saveOrUpdate(@Valid Animal animal);

    void deleteById(String animalId);

    void batchDelete(List<String> animalIds);

    /**
     * 根据动物id生成二维码
     * @param animalId 动物id
     */
    void qrCode(String animalId);
}
